import fs from "fs"
import {template} from "lodash"
import path from "path"


async function main () {
  /* let turl = path.join(__dirname, '../templates/page.p.vue')
  let t1 = await fs.promises.readFile(turl, {encoding: 'utf-8'})
  const compile = template(t1)
  let tf = compile(FinalData.option({
    className: 'cdd',
    cname: 'cddFirstTempalte'
  }))

  console.log(`tf is`, tf) */

  // fs.writeFile(path.resolve(__dirname, '../out/cdd.txt'), '123', (res) => {
  //   console.log(`re is`, res)
  // })
  await fs.promises.mkdir(path.join(__dirname, '../out'))
  console.log(`创建完成`)
}

main()


